package com.example.booklist.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    //当前页面的内容
    private List<T> records;
    //总的数据量
    private Integer total;

    private PageRequest pageRequest;
    public PageResult(List<T> records, Integer total, PageRequest request) {
        this.records = records;
        this.total = total;
        this.pageRequest = request;
    }
}
